this._animationBlockCount = Math.max(0, this._animationBlockCount - 1);
},
- _shouldAnimate : function(actor) {
- if (Main.overview.visible || this._animationBlockCount > 0)
- return false;
- if (actor && (actor.meta_window.get_window_type() != Meta.WindowType.NORMAL))
+ _shouldAnimate: function() {
+ return !(Main.overview.visible || this._animationBlockCount > 0);
+ },
+
+ _shouldAnimateActor: function(actor) {
+ if (!this._shouldAnimate())
return false;
- return true;
+ return actor.meta_window.get_window_type() == Meta.WindowType.NORMAL;
},
_removeEffect : function(list, actor) {
},
_minimizeWindow : function(shellwm, actor) {
- if (!this._shouldAnimate(actor)) {
+ if (!this._shouldAnimateActor(actor)) {
shellwm.completed_minimize(actor);
return;
}
shellwm.completed_map(actor);
return;
}
- if (!this._shouldAnimate(actor)) {
+ if (!this._shouldAnimateActor(actor)) {
shellwm.completed_map(actor);
return;
}